SUBDIRS=builtin
bin_PROGRAMS=ncblog
ncblog_SOURCES=main.c xmalloc.c array.c string.c hashmap.c dict.c log.c utils.c base64.c daemon.c sighandler.c reader.c scanner.c tag.c var.c db.c url.c session.c cookie.c request.c static_file.c template.c db_sqlite3.c template_simple.c
ncblog_LDADD=builtin/libbltns.a

if BUILD_PTHREADS
ncblog_SOURCES += thread.c
endif

if BUILD_HTTPD
ncblog_SOURCES += httpd.c
endif

if BUILD_LUA
ncblog_SOURCES += template_lua.c
endif
